package com.wei.czz.common.vo.common.fileImport;

import com.alibaba.fastjson2.annotation.JSONField;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-05-05 11:52:03
 * className: FileImportVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class FileImportVo extends BaseEntity {

    /**
     * 文件上传主键
     */
    @NotNull(message = "文件上传主键不能为空")
    private Long id;

    /**
     * 切片序号
     */
    @NotNull(message = "切片序号不能为空")
    private Integer sliceSequence;

    /**
     * 切片md5值
     */
    @NotBlank(message = "切片md5值不能为空")
    private String sliceMd5;

    /**
     * 切片文件
     */
    @JSONField(serialize = false)
    @NotNull(message = "切片文件不能为空")
    private MultipartFile sliceFile;

}
